#include <iostream>
#include "SelectServer.hpp"

using namespace std;

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        cout << "Usage : "  << argv[0] << " port\n" << endl;
        return 1;
    }
    unique_ptr<SelectServer> svr = std::make_unique<SelectServer>(std::atoi(argv[1]));
    svr->Init();
    svr->Loop();
    return 0;
}